Optimal. Leaf size=45 \[ \frac{\cos (e+f x) (a \sin (e+f x)+a)^{3/2}}{2 a f \sqrt{c-c \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.283645, antiderivative size = 45, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 38, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.053, Rules used = {2841, 2738} \[ \frac{\cos (e+f x) (a \sin (e+f x)+a)^{3/2}}{2 a f \sqrt{c-c \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2841
Rule 2738
Rubi steps
\begin{align*} \int \frac{\cos ^2(e+f x) \sqrt{a+a \sin (e+f x)}}{\sqrt{c-c \sin (e+f x)}} \, dx &=\frac{\int (a+a \sin (e+f x))^{3/2} \sqrt{c-c \sin (e+f x)} \, dx}{a c}\\ &=\frac{\cos (e+f x) (a+a \sin (e+f x))^{3/2}}{2 a f \sqrt{c-c \sin (e+f x)}}\\ \end{align*}
Mathematica [A] time = 0.307567, size = 62, normalized size = 1.38 \[ -\frac{\sec (e+f x) \sqrt{a (\sin (e+f x)+1)} \sqrt{c-c \sin (e+f x)} (\cos (2 (e+f x))-4 \sin (e+f x))}{4 c f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.236, size = 94, normalized size = 2.1 \begin{align*}{\frac{ \left ( \sin \left ( fx+e \right ) \cos \left ( fx+e \right ) - \left ( \cos \left ( fx+e \right ) \right ) ^{2}+\sin \left ( fx+e \right ) +2\,\cos \left ( fx+e \right ) -1 \right ) \sin \left ( fx+e \right ) }{2\,f \left ( 1-\cos \left ( fx+e \right ) +\sin \left ( fx+e \right ) \right ) }\sqrt{a \left ( 1+\sin \left ( fx+e \right ) \right ) }{\frac{1}{\sqrt{-c \left ( -1+\sin \left ( fx+e \right ) \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.73736, size = 522, normalized size = 11.6 \begin{align*} -\frac{\frac{2 \, \sqrt{a} \sqrt{c} + \frac{\sqrt{a} \sqrt{c} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac{3 \, \sqrt{a} \sqrt{c} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac{\sqrt{a} \sqrt{c} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}}{c + \frac{2 \, c \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac{c \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}}} - \frac{2 \, \sqrt{a} \sqrt{c} - \frac{\sqrt{a} \sqrt{c} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac{\sqrt{a} \sqrt{c} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - \frac{\sqrt{a} \sqrt{c} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}}{c + \frac{2 \, c \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac{c \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}}} + \frac{2 \,{\left (\frac{\sqrt{a} \sqrt{c} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac{\sqrt{a} \sqrt{c} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac{\sqrt{a} \sqrt{c} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}\right )}}{c + \frac{2 \, c \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac{c \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}}}}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.60429, size = 154, normalized size = 3.42 \begin{align*} -\frac{{\left (\cos \left (f x + e\right )^{2} - 2 \, \sin \left (f x + e\right ) - 1\right )} \sqrt{a \sin \left (f x + e\right ) + a} \sqrt{-c \sin \left (f x + e\right ) + c}}{2 \, c f \cos \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{a \left (\sin{\left (e + f x \right )} + 1\right )} \cos ^{2}{\left (e + f x \right )}}{\sqrt{- c \left (\sin{\left (e + f x \right )} - 1\right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{a \sin \left (f x + e\right ) + a} \cos \left (f x + e\right )^{2}}{\sqrt{-c \sin \left (f x + e\right ) + c}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]